<?php echo form_fieldset('Pago_Cliente');?>
<table border=0 align="center">        
<?php
echo form_hidden(array('name'=>'base_url','id' => 'base_url','value' =>base_url()));
echo form_open('pago_cliente_controller/guardar_pago_cliente',$attributes= array('name' => "formPagoCliente"));
?> 
    <tr>
		<td><?php echo form_label('N&uacute;mero de Documento', 'lbl_nro_documento');?></td>	
		<td><?php echo form_input('nro_documento',set_value('nro_documento')) ?></td>
		<td><?php echo form_error('nro_documento', '<div class="error">', '</div>'); ?></td>
		
	</tr>
	<tr>
		<td><?php echo form_label('Monto', 'lbl_monto');?></td>	
		<td><?php echo form_input('monto',set_value('monto')) ?></td>
		<td><?php echo form_error('monto', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Fecha:', 'lbl_fecha');?></td>	
		<td><?php echo form_input(array('name' =>'fecha','size' => '10','class' => 'input','readOnly'=>'true','id'=>'fecha')) ?>
		 <?php $img = img(array('src'=>'/imagenes/boton_date.png', 'valign'=>'middle' ));?>		
		<?php echo anchor('', $img,array('id'=>'calendario')); ?>
		<td><?php echo form_error('fecha', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
	  <td><?php echo form_label('Forma de Pago', 'lbl_forma_pago');?></td>
      <td> <?php echo form_dropdown('formapago',$formapago,set_select('formapago','',TRUE)); ?> </td>
	  <td><?php echo form_error('formapago', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Tipo Banco', 'lbl_tipo_banco');?></td>
		 <td> <?php echo form_dropdown('bancos', $bancos,'0'); ?> </td>
		 <td><?php echo form_error('bancos', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
    	<td colspan="2" align="right"><?php echo form_submit(array('name'=> 'btn_guardar','value'=>'Guardar','class'=>'Boton')) ?>
	    <?php echo form_reset(array('name'=> 'btn_cancelar','value'=>'Cancelar','class'=>'Boton'))?></td>
       
	</tr>
	<script type="text/javascript">
  			function dateChanged(calendar) {
    			if (calendar.dateClicked) {
      			var y = calendar.date.getFullYear();
      			var m = calendar.date.getMonth();
      			var d = calendar.date.getDate();
      			window.location = "#";
    			}
  			};  
  
  			Calendar.setup(
    			{
      				inputField  : "fecha",
      				ifFormat    : "%d/%m/%Y",
      				button      : "calendario"
    			}
  			);
  
		</script>
 		<?php echo  form_close();?>
</table>

